package a.b.c;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import x.y.z.App;

import javax.annotation.Resource;

/**
 * 2021/10/15
 */
@SpringBootApplication(scanBasePackages={"a.b.c","x.y.z"})
public class Abc implements CommandLineRunner{

    @Resource
    ApplicationContext  ctx;


    public static void main(String[] args) {
        SpringApplication.run(Abc.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        App bean = ctx.getBean(App.class);
        System.out.println(bean == null);
    }
}
